package com.sinvo.oa.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sinvo.oa.entity.model.process.Process;
import com.sinvo.oa.entity.vo.process.ProcessQueryVo;
import com.sinvo.oa.entity.vo.process.ProcessVo;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;

/**
 * @Description 审批 Mapper接口
 */
public interface ProcessMapper extends BaseMapper<Process> {

    //分页查询审批
    Page<ProcessVo> queryProcessByPage(@Param("page") Page<ProcessVo> page, @Param("vo") ProcessQueryVo processQueryVo);

    //根据日期相差查询count 用于dashboard折线图
    Integer queryCountByDateDiff(Integer diff);
}
